﻿#region Imports
using System;
using System.Globalization;
using System.Windows.Data;
using JounceSilverlightDemo.ViewModels;
#endregion

namespace JounceSilverlightDemo.Converters
{
    public class UserWelcomeConverter : IValueConverter
    {
        #region Methods
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            VisibilityConverter vis = new VisibilityConverter();
            return vis.Convert((System.Convert.ToString(value) != HeaderViewModel.defaultUser), targetType, parameter, culture);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
        #endregion
    }
}
